import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home/Index";
import Login from '../components/Login/Index'
import Main from "../components/Main/Main";
import MainHome from '../view/Home'
import statisfaction from '../view/statisfactions/Index'
import AddStatisFaction from "../view/statisfactions/AddStatisFaction"
import Class from "../view/class/Class";
import Student from "../view/class/Student";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/login'
    },
    {
      path:'/index',
      component:Home
    },
    {
      path:'/login',
      component:Login
    },{
      path:'/main',
      component: Main,
      children:[
        {
          path:'/',
          component:MainHome
        },
        {
          path: 'statisfaction',
          component: statisfaction
        },
        {
          path: "addStatisFaction",
          component:AddStatisFaction
        },
        {
          path: "class",
          component: Class
        },
        {
          path: "student",
          component: Student
        }
      ]
    }
  ]
})
